<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="cn.firstsoft.modules.portlet.domain.PortletNewsCatalogy" table="Portlet_news_catalogy">
      <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				         <param name="sequence">PORTLET_NEWS_CATALOGY_ID_SEQ</param>
            </generator>
        </id>
        
         <property name="showType" type="integer">
               <column name="show_type" />
        </property>
        
        <many-to-one name="news" cascade="save-update"
			class="cn.firstsoft.modules.news.domain.News" fetch="select">
			<column name="news_id" />
		</many-to-one> 
    </class>
</hibernate-mapping>
